import request from "@/utils/request";

// 查询项目地质勘探列表
export function listProdProjectGeology(query) {
  return request({
    url: "/pile/prodProjectGeology/list",
    method: "get",
    params: query,
  });
}

// 查询项目地质勘探所有列表
export function listAllProdProjectGeology(query) {
  return request({
    url: "/pile/prodProjectGeology/listAll",
    method: "get",
    params: query,
  });
}

// 查询项目地质勘探详细
export function getProdProjectGeology(id) {
  return request({
    url: "/pile/prodProjectGeology/getInfo/" + id,
    method: "get",
  });
}

// 新增项目地质勘探
// export function addProdProjectGeology(data) {
//   return request({
//     url: "/pile/prodProjectGeology/add",
//     method: "post",
//     data: data,
//   });
// }
export function addProdProjectGeology(data) {
  return request({
    url: "/pile/prodProjectGeology/addByExcel",
    method: "post",
    data: data,
  });
}

// 修改项目地质勘探
export function updateProdProjectGeology(data) {
  return request({
    url: "/pile/prodProjectGeology/edit",
    method: "post",
    data: data,
  });
}

// 删除项目地质勘探
export function delProdProjectGeology(id) {
  return request({
    url: "/pile/prodProjectGeology/remove/" + id,
    method: "get",
  });
}
